package com.idol.config;

import com.idol.utils.ParameterMapping;

import java.util.List;

/**
 * @author Supreme_Sir
 * @version 1.0
 * @className BondSql
 * @description
 * @date 2020/9/26 17:04
 **/
public class BondSql {
    /**
     * 经过解析后的 SQL 即：将 #{*} 替换为 ? 后的 SQL
     */
    private String sqlText;
    /**
     * 参数名称结果集 即：#{id}、#{name} 中的字符串 id 和 name
     */
    private List<ParameterMapping> parameterMappingList;

    public String getSqlText() {
        return sqlText;
    }

    public void setSqlText(String sqlText) {
        this.sqlText = sqlText;
    }

    public List<ParameterMapping> getParameterMappingList() {
        return parameterMappingList;
    }

    public void setParameterMappingList(List<ParameterMapping> parameterMappingList) {
        this.parameterMappingList = parameterMappingList;
    }

    public BondSql(String sqlText, List<ParameterMapping> parameterMappingList) {
        this.sqlText = sqlText;
        this.parameterMappingList = parameterMappingList;
    }
}
